package itdfq.ydd.Creational_Pattern.gongchang;

/**
 * @Author GocChin
 * @Date 2021/3/20 13:50
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210136  杨丹丹");
        try {
            Lipstick lipstick;
            Factory factory;
            factory = (Factory) XMLUtil.getBean();
            lipstick = factory.productlipstick();
            lipstick.use();
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
    }
}
